Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metropolis Hastings with All or Nothing for Likelihood #54

Open
wants to merge 488 commits into
base: metro_hastings
Choose a base branch
from

Conversation

jingnongqu
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@shanest shanest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome; great work, Jingnong!

I left a few focused / detail-oriented comments in the code. One high-level thing I'd like to discuss is: should we make mh_sample more modular / separated out? One thing I can imagine: grammar becomes a folder/package, and then we have a module for inference that defines the algorithms (mainly MH for now).

Similarly: I wonder whether the sampling step and the acceptance step should be factored out and passed in as arguments, instead of "hard-coded" in the same mega-method. What do you think?

src/examples/indefinites/grammar.py Outdated Show resolved Hide resolved
src/ultk/language/grammar.py Outdated Show resolved Hide resolved
src/ultk/language/grammar.py Outdated Show resolved Hide resolved
src/ultk/language/grammar.py Outdated Show resolved Hide resolved
src/ultk/language/grammar.py Outdated Show resolved Hide resolved
src/ultk/language/grammar.py Outdated Show resolved Hide resolved
src/ultk/language/grammar.py Outdated Show resolved Hide resolved
src/ultk/language/grammar.py Outdated Show resolved Hide resolved
@nathimel nathimel force-pushed the metro_hastings branch 3 times, most recently from 36afd2d to 1005e4c Compare January 24, 2025 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants